package com.xyh.transaction.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xyh.transaction.common.Constant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

// 这个实体的属性顺序要和表头一致,可以通过index设置
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ImportExcelUserVo {

//    private Integer id;

    private String username;

    private Integer age;

    @ExcelProperty(converter = GenderConverter.class)
    private Integer gender; // 0：女  1：男

    @JsonFormat(pattern = Constant.DATE_FORMAT_DEFAULT)
    private LocalDateTime createTime;

    private String idCard;

    private String email;

    @ExcelProperty(converter = StatusConverter.class)
    private Integer status; // 0：禁用 1：启用


}
